<jsp:include page="header.jsp" />
<jsp:include page="sidenav.jsp" />
<div id="content">

    <h1>Add a book</h1>
	<hr />
            
	<form id="additem" method="post"  enctype='multipart/form-data' action="AddItem.do">
	
		<input type="hidden" name="add" value="add"></input>
		
		<table width="373" border="0" cellpadding="5" cellspacing="5" bordercolor="#000000">
          <tr>
            <td width="41%"><label for="title">Book Title</label></td>
            <td width="59%"><input type="text" name="title" id="title" /></td>
          </tr>
          <tr>
            <td><label for="description">Description</label></td>
            <td><input type="text" name="description" id="description" /></td>
          </tr>
          <tr>
            <td><label for="startprice">Starting Price</label></td>
            <td><input type="text" name="startprice" id="startprice" /></td>
          </tr>
          <tr>
            <td><label for="reserveprice">Reserve Price</label></td>
            <td><input type="text" name="reserveprice" id="reserveprice" /></td>
          </tr>
          <tr>
            <td><label for="buyItNowPrice">BuyItNowPrice</label></td>
            <td><input type="text" name="buyItNowPrice" id="buyItNowPrice" /></td>
          </tr>          
          <tr>
            <td><label for="location">Location</label></td>
            <td><input type="text" name="location" id="location" /></td>
          </tr>
          <tr>
            <td><label for="conditionid">Condition</label></td>
            <td>
            	<SELECT NAME="conditionid" id="conditionid" style="width:310px;"/>
					<OPTION VALUE="1000" SELECTED>New
					<OPTION VALUE="3000">Used
					<OPTION VALUE="4000">Very Good
					<OPTION VALUE="5000">Good
					<OPTION VALUE="6000">Acceptable
				</SELECT>
            </td>
          </tr>
          <tr>
            <td><label for="listingduration">Listing Duration</label></td>
            <td>
            	<SELECT NAME="listingduration" id="listingduration" style="width:310px;"/>
					<OPTION VALUE="Days_1" SELECTED>1 Day
					<OPTION VALUE="Days_3">3 Days
					<OPTION VALUE="Days_5">5 Days
					<OPTION VALUE="Days_7">7 Days
				</SELECT>
            </td>
          </tr>
          <tr>
            <td><label for="image">Image</label></td>
            <td><input type="file" name="image" id="image" /></td>
          </tr>
          <tr>
            <td colspan="2"><button type="submit" value="add">Add</button></td>
          </tr>
        </table>
		
		<br><br><font color=#FF0000>${error}</font>
		
   
	</form>

</div>
<jsp:include page="footer.jsp" />